function ShowServers(...args) {
    // console.log("args:",args);
    const strArray = args[0].map(obj => obj.name);
    return strArray.join(",")
      
}

// changed by type(keepalive or normal)
function OnChange(query) {
  console.log("query",query);
  // 进入onchange事件
  query = query || {};
  field = query.key;
  newVal = query.value;
  oldVal = query.old;
  params = query.params; // 开发者定义数据

  let setting = Process("yao.form.Setting", "cmdb.platform");
  if (setting && setting.code && setting.message) {
    throw new Exception(setting.message, 500);
  }

  let data = { ...query }; 

  if(field == 'type' && newVal == 'bigdata'){
       console.log("----------bigdata---------------",setting);
       // delete setting['fields']['form']["配置文件"]
       columns = setting['form']['sections'][0]['columns']
       columns = columns.filter(function(obj) {
        console.log(obj.name);
        return obj.name !== "配置文件";
      });
      setting['form']['sections'][0]['columns'] = columns;
    
  }
 
  return {
    data: data,
    setting: setting,
  };
}